package com.domain.bean.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.*;

@Data
public class SysMenuVO implements Serializable {
    private static final long serialVersionUID = -1793603187037168745L;

    private String id;

    private String name;

    private String pId;

    private String url;

    private Integer orderNum;

    private String icon;

    private String createBy;

    private Date createDate;

    private String updateBy;

    private Date updateDate;

    private String permission;

    private Byte menuType;
    /**菜单排序id 填充菜单展示id*/
    private int num;

    private Set<SysRoleVO> roleList;

    private List<SysMenuVO> children=new ArrayList<SysMenuVO>();

    public void addChild(SysMenuVO SysMenuVO){
        children.add(SysMenuVO);
    }
}
